<script setup>
import {inject} from 'vue';
const data=inject("provideUser")
console.log(data);


const message=inject("provideMessage")
function sendMessage(){
    message.sendMessage("hello")
}
</script>

<template>
    <h3>Nav.vue组件-Bottom</h3>
    <button @click="sendMessage">发送消息到App.vue</button>
</template>

<style scoped>

</style>